﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WFcontrol.GUI
{
    public partial class frm_shopcd : Form
    {
        
        public frm_shopcd()
        {
            InitializeComponent();
        }
        WFcontrol.BL.cl_shopcd clcd;
        private void frm_shopcd_Load(object sender, EventArgs e)
        {
            //comboBox1.add = "select MaDM from shopcd";
            clcd = new WFcontrol.BL.cl_shopcd(this);
           //clcd = new WFcontrol.BL.cl_shopcd(this);
            clcd.addcom();
            clcd.hienthi2(null);

        }

        private void button1_Click(object sender, EventArgs e)
        {
            clcd.addcom();
            clcd.themcd();
            clcd.refreshdata();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            clcd.addcom();
            clcd.sua2();
           
        }

        private void Xoa_Click(object sender, EventArgs e)
        {
            clcd.addcom();
            clcd.xoa2();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
